package com.xinke.module.system.model.vo.oauth2;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - OAuth2 客户端 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OAuth2ClientRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12030")
    @ExcelProperty("编号")
    private Long clientId;

    @Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户端编号")
    private String clientNo;

    @Schema(description = "客户端密钥", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户端密钥")
    private String clientSecret;

    @Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("应用名")
    private String clientName;

    @Schema(description = "应用图标", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("应用图标")
    private String clientLogo;

    @Schema(description = "应用描述")
    @ExcelProperty("应用描述")
    private String clientDesc;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer clientStatus;

    @Schema(description = "访问令牌的有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("访问令牌的有效期")
    private Integer accessTokenValiditySeconds;

    @Schema(description = "刷新令牌的有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("刷新令牌的有效期")
    private Integer refreshTokenValiditySeconds;

    @Schema(description = "可重定向的 URI 地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("可重定向的 URI 地址")
    private String redirectUri;

    @Schema(description = "授权类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("授权类型")
    private String authorizedGrantTypes;

    @Schema(description = "授权范围")
    @ExcelProperty("授权范围")
    private String authScope;

    @Schema(description = "自动通过的授权范围")
    @ExcelProperty("自动通过的授权范围")
    private String autoApproveScopes;

    @Schema(description = "权限")
    @ExcelProperty("权限")
    private String authorities;

    @Schema(description = "资源")
    @ExcelProperty("资源")
    private String resourceIds;

    @Schema(description = "附加信息")
    @ExcelProperty("附加信息")
    private String additionalInformation;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}